package o;

import com.google.android.exoplayer2.text.Cue;
import com.google.android.exoplayer2.text.ttml.TtmlStyle;
import java.util.Collections;
import java.util.List;
import java.util.Map;

final class akl implements aji {
    private final Map<String, String> ˊ;
    private final ake ˋ;
    private final Map<String, akd> ˎ;
    private final long[] ˏ;
    private final Map<String, TtmlStyle> ॱ;

    public akl(ake o_ake, Map<String, TtmlStyle> map, Map<String, akd> map2, Map<String, String> map3) {
        this.ˋ = o_ake;
        this.ˎ = map2;
        this.ˊ = map3;
        this.ॱ = map != null ? Collections.unmodifiableMap(map) : Collections.emptyMap();
        this.ˏ = o_ake.ˎ();
    }

    public int ॱ(long j) {
        int ॱ = anr.ॱ(this.ˏ, j, false, false);
        return ॱ < this.ˏ.length ? ॱ : -1;
    }

    public int ॱ() {
        return this.ˏ.length;
    }

    public long ˊ(int i) {
        return this.ˏ[i];
    }

    public List<Cue> ˊ(long j) {
        return this.ˋ.ˏ(j, this.ॱ, this.ˎ, this.ˊ);
    }
}
